import Login from '../Pages/Login.vue'
import Main from '../Pages/Main.vue'
import NotFounded from '../components/404.vue'
import HelloWorld from '../components/HelloWorld.vue'
import MainContainer from '../Pages/MainContainer.vue'
import Contain from '../components/Menu.vue'

const routes = [
    {
        name: 'root',
        path: '/',
        component:HelloWorld
    },
    //医生模块
    {
        name: 'maincontainer',
        path: '/MainContainer',
        component: MainContainer,
        meta:{
            title:'初始页面',
        },
        children: [
            {
                path:'/contain',
                name:'contain',
                meta:{
                    title:'欢迎',
                },
                component:Contain
            },
            {
                path:'/Main',
                name:'MainPage',
                meta:{
                    title:'个人中心',
                    permiss:'1',
                },
                component:Main
            },
            {
                path:'/tabs',
                name:'tabs',
                meta:{
                    title:'消息盒子'
                },
                component: () => import('../Pages/tabs.vue'),
            },
            {
                path:'/accountmanage',
                name:'AccountManage',
                meta:{
                    title:'账户管理',
                },
                component: ()=> import('../Pages/AccountManage.vue'),
            },
            {
                path: '/HealthyAssess',
                name:'healthyassess',
                meta:{
                    title:'健康评估',
                },
                component: ()=> import('../Pages/HealthyAssess.vue'),
            },
            {
                path:'/BodyIndex',
                name: 'BodyIndex',
                meta:{
                    title:'用户详情',
                },
                component: ()=> import('../Pages/BodyIndex.vue'),
            },
            {
                path:'/FindUser',
                name:'FindUser',
                meta:{
                    title:'用户查询',
                },
                component: ()=>import('../Pages/FindUser.vue'),
            },
            {
                path:'/DoctorAppointment',
                name:'doctorappointment',
                meta:{
                    title:'就诊预约',
                },
                component: ()=>import('../Pages/DoctorAppointment.vue'),
            },
            {
                path:'/ContectUser',
                name:'contectuser',
                meta:{
                    title:'随访管理',
                },
                component: ()=>import('../Pages/ContectUser.vue'),
            },
            {
                path:'/SignContect',
                name:'signcontect',
                meta:{
                    title:'签约申请',
                },
                component: ()=>import('../Pages/SignContect.vue'),
            },
            {
                path:'/HealthConseling',
                name:'healthconseling',
                meta:{
                    title:'健康咨询',
                },
                component: ()=>import('../Pages/HealthCounseling.vue'),
            },
            {
                path:'/DoctorVideo',
                name:'doctorvideo',
                meta:{
                    title:'视频问诊',
                },
                component: ()=>import('../Pages/DoctorVideo.vue'),
            }
        ]
    },
    {
        path: '/Login',
        name: 'Login',
        component: Login
    },
    {
        name: 'NotFound',
        path: '/:pathMatch(.*)*',
        component:NotFounded
    },
    //用户模块
    {
        path:'/UserMain',
        name:'usermain',
        component: ()=>import('../Pages/UserPage/UserMain.vue'),
        children:[
            {
                path:'/UserPerson',
                name:'userperson',
                meta:{
                    title:'用户中心',
                },
                component: ()=>import('../Pages/UserPage/UserPerson.vue'),
            },
            {
                path:'/UserAccountManage',
                name:'useraccountmanage',
                meta:{
                    title:'账户中心',
                },
                component: ()=>import('../Pages/UserPage/UserAccountManage.vue'),
            },
            {
                path:'/UserSignDoc',
                name:'usersigndoctor',
                meta:{
                    title:'签约医生',
                },
                component: ()=>import('../Pages/UserPage/UserSignDoctor.vue')
            },
            {
                path:'/Usertabs',
                name:'usertabs',
                meta:{
                    title:'消息盒子',
                },
                component: ()=>import('../Pages/UserPage/UserTabs.vue')
            },
            {
                path:'/ApplyDoctor',
                name:'applydoctor',
                meta:{
                    title:'申请医生',
                },
                component: ()=>import('../Pages/UserPage/UserApplyDoctor.vue')
            },
            {
                path:'/UsrConseling',
                name:'usrconseling',
                meta:{
                    title:'健康咨询',
                },
                component: ()=>import('../Pages/UserPage/HealthCounseling.vue')
            },
            {
                path:'/UserVideo',
                name:'uservideo',
                meta:{
                    title:'视频问诊',
                },
                component: ()=>import('../Pages/UserPage/UserVideo.vue'),
            },
            {
                path:'/UsrApplyVisit',
                name:'usrapplyvisit',
                meta:{
                    title:'就诊预约',
                },
                component: ()=> import('../Pages/UserPage/UserApplyVisit.vue')
            }
        ]
    },
    //管理员模块
    {
        path:'/ManagerMain',
        name:'ManagerMain',
        component: ()=>import('../Pages/ManagerPage/ManagerMain.vue'),
        children:[
            {
                path:'/ManagerAccount',
                name:'ManagerAccount',
                meta:{
                    title:'用户中心',
                },
                component: ()=>import('../Pages/ManagerPage/ManagerAccount.vue'),
            },
            {
                path:'/ManagerDoctor',
                name:'ManagerDoctor',
                meta:{
                    title:'医生管理',
                },
                component: ()=>import('../Pages/ManagerPage/ManagerDoctor.vue'),
            },
            {
                path:'/ManagerUser',
                name:'ManagerUser',
                meta:{
                    title:'用户管理',
                },
                component: ()=>import('../Pages/ManagerPage/ManagerUser.vue')
            },
        ]
    }
];
export default routes